﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Omes.Web.CustomerControls;

namespace Omes.Web.Page
{
    public partial class Container : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            
        }
        protected override void OnInit(EventArgs e)
        {
            string controlType = "";
            if (string.IsNullOrEmpty(Request.Params["pid"]))
            {
                //todo:获取将要显示控件类型

               var control = this.LoadControl("/CustomerControls/HtmlControl.ascx") as ICustomControl;
               control.BlockName = 123123123;
                if (control != null)
                {
                    PlaceHolder1.Controls.Add(control as UserControl);
                }
            }
            base.OnInit(e);
        }
         protected override void OnLoad(EventArgs e)
         {
             base.OnLoad(e);
         }
    }
}